<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><div class="text-left">承运商</div></th>
            <th><div class="text-left">渠道名称</div></th>
            <th>渠道编号</th>
            <th>渠道类型</th>
            <th>是否可追踪</th>
            <th>默认起重(g)</th>
            <th>最大发货量</th>
            <th>追踪号方式</th>
            <th>面单方式</th>
            <th>面单尺寸(mm)</th>
            <th>状态</th>
            <th>排序</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td class="text-left">{$item.carrier.carrier_name}</td>
                <td class="text-left">{$item.channel_name}</td>
                <td class="copy-text">{$item.channel_code}</td>
                <td>{$item.channel_type}</td>
                <td>{$item.is_track}</td>
                <td>{$item.default_weight}</td>
                <td>{$item.day_max_shipping?:''}</td>
                <td>{$item.track_type}</td>
                <td>{$item.label_type}</td>
                <td>{$item.label_width}x{$item.label_height}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['channel_id'=>$item['channel_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>{$item.sort}</td>
                <td class="text-left">{$item.remark}</td>
                <td><a href="{:url('add',['channel_id'=>$item['channel_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" title="渠道管理">编辑</a>
                    <a href="{:url('delete',['ids'=>$item['channel_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="14">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
